package com.ruoyi.maintenance.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维护计划对象 maintenance_plan
 * 
 * @author silence
 * @date 2025-07-21
 */
public class MaintenancePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划ID */
    private Long id;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String planName;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 计划类型(1-定期维护,2-预防性维护,3-临时维护) */
    @Excel(name = "计划类型(1-定期维护,2-预防性维护,3-临时维护)")
    private String planType;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 维护内容 */
    @Excel(name = "维护内容")
    private String content;

    /** 预计耗时(小时) */
    @Excel(name = "预计耗时(小时)")
    private BigDecimal estimatedHours;

    /** 状态(0-未开始,1-进行中,2-已暂停,3-已取消,4-已完成) */
    @Excel(name = "状态(0-未开始,1-进行中,2-已暂停,3-已取消,4-已完成)")
    private Long status;

    /** 发布状态(0-未发布,1-发布) */
    @Excel(name = "发布状态(0-未发布,1-发布)")
    private Long pstatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    public void setPlanType(String planType) 
    {
        this.planType = planType;
    }

    public String getPlanType() 
    {
        return planType;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setEstimatedHours(BigDecimal estimatedHours) 
    {
        this.estimatedHours = estimatedHours;
    }

    public BigDecimal getEstimatedHours() 
    {
        return estimatedHours;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPstatus(Long pstatus) 
    {
        this.pstatus = pstatus;
    }

    public Long getPstatus() 
    {
        return pstatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planName", getPlanName())
            .append("deviceId", getDeviceId())
            .append("planType", getPlanType())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("content", getContent())
            .append("estimatedHours", getEstimatedHours())
            .append("status", getStatus())
            .append("pstatus", getPstatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
